"""
自定义异常类
"""


class ServiceException(Exception):
    """服务异常基类"""
    def __init__(self, message: str, error_code: str = None):
        super().__init__(message)
        self.message = message
        self.error_code = error_code


class OSSException(ServiceException):
    """OSS 相关异常"""
    pass


class WorkflowException(ServiceException):
    """工作流相关异常"""
    pass


class ConfigurationException(ServiceException):
    """配置相关异常"""
    pass
